/*
 * Copyright (c) 2020-2099 the original author or authors. All rights reserve.
 */
package org.tianyun.cloud.security.server.servlet;

import org.tianyun.cloud.security.server.SecurityWebExchange;

import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

/**
 * 简单的实现
 *
 * @auther ebert_chan
 */
public class SimpleSecurityWebExchange implements SecurityWebExchange<ServletRequest, ServletResponse> {

    private ServletRequest request;

    private ServletResponse response;

    public SimpleSecurityWebExchange(ServletRequest request, ServletResponse response) {
        this.request = request;
        this.response = response;
    }

    /*
     * @see org.tianyun.cloud.security.server.SecurityWebExchange#getRequest()
     */
    @Override
    public ServletRequest getRequest() {
        return request;
    }

    /*
     * @see org.tianyun.cloud.security.server.SecurityWebExchange#getResponse()
     */
    @Override
    public ServletResponse getResponse() {
        return response;
    }

}
